﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Com.queryzer2.Services.Base;
using Com.queryzer2.Services.Interface;
using Com.queryzer2.Domain.Entities;
using Com.queryzer2.Domain;

namespace Com.queryzer2.Services.Impl
{
    public class PraticaBaseServices : BaseSingleton<PraticaBaseServices>, IPraticaBaseServices
    {
        public GEP_RISPOSTA getPraticaResponse(decimal id_Pratica)
        {
            return DbProvider.DaoImpl.RispostaDao.GetById(id_Pratica);
        }

        public List<GEP_RISPOSTA> getPraticaResponse(List<decimal> listId)
        {
            return DbProvider.DaoImpl.RispostaDao.getRisposteByListaPratiche(listId);
        }

        public void UpdateResponse(GEP_RISPOSTA response)
        {
            DbProvider.DaoImpl.RispostaDao.Update(response);
        }

        public void InsertResponse(GEP_RISPOSTA response)
        {
            DbProvider.DaoImpl.RispostaDao.Insert(response);
        }

        public GEP_TESTATA InsertPratica(GEP_TESTATA testata)
        {
            DbProvider.DaoImpl.PraticaDao.Insert(testata);
            return testata;
        }

    }

}
